﻿using System;
using ARD.EventRouting;
using SharpObjects.SearchEngine.Common.Indexing;

namespace SharpObjects.SearchEngine.Common.ApplicationEvents
{
    [Serializable]
    public class IndexingApplicationEvent : IApplicationEvent
    {
        public enum eIndexingAction
        {
            Index,
            Delete
        }

        public IndexingApplicationEvent()
        {
            this.IndexDirectoryId = "main_index";
            this.IndexingAction = eIndexingAction.Index;
            this.IndexIfNotNewer = false;
        }

        public eIndexingAction IndexingAction { get; set; }
        public string IndexDirectoryId { get; set; }
        public ISourceDocument Document { get; set; }
        public bool IndexIfNotNewer { get; set; }
    }
}
